package com.blb.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author wss
 * @since 2020-05-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_warehouse")
public class Warehouse extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     * 仓库编号
     */
    private String warehouseNo;

    /**
     * 仓库名称
     */
    private String warehouseName;

    /**
     * 负责人
     */
    private String warehousePerson;

    /**
     * 联系电话
     */
    private String personTel;

    /**
     * 货区数目
     */
    @TableField(exist = false)
    private Integer areaNum;

    /**
     * 货架数目
     */
    @TableField(exist = false)
    private Integer shelfNum;

    /**
     * 货位数目
     */
    @TableField(exist = false)
    private Integer csNum;

    /**
     * 空置数目
     */
    @TableField(exist = false)
    private Integer vcsNum;

    /**
     * 仓库描述
     */
    private String warehouseRemark;

    /**
     * 仓库描述
     */
    private String warehouseAddress;

    /**
     * 状态(1:已启用，2：已停用)
     */
    private String warehouseStatus;

    @TableField(exist = false)
    private String name;

    //库区
    @TableField(exist = false)
    private List<Area> children;

    /**
     *   商品编号
     */
    @TableField(exist = false)
    private String pid;

    @TableField(exist = false)
    private String productName;

    /**
     *   仓库商品数量
     */
    @TableField(exist = false)
    private Integer num;

}
